package com.example.demo.excel;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
@ExcelTarget("users")
public class ExcelUser implements Serializable{
	@Excel(name = "编号",orderNum ="0")
	private String id;
	@Excel(name = "姓名",orderNum ="1")
	private String name;
	@Excel(name = "年龄",orderNum ="3")
	private Integer age;
	@Excel(name = "生日",width = 35.0,format = "yyyy-MM-dd HH:mm:ss",orderNum ="2")
	private Date bir;
	
	@ExcelEntity //标志一对一关系的
	private Card card;
	
	@ExcelCollection(name = "订单信息",orderNum = "6") //一对多的集合注解,用以标记集合是否被数据以及集合的整体排序
	private List<Orders> orders;
	
	
	public List<Orders> getOrders() {
		return orders;
	}
	public void setOrders(List<Orders> orders) {
		this.orders = orders;
	}
	public Card getCard() {
		return card;
	}
	public void setCard(Card card) {
		this.card = card;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getBir() {
		return bir;
	}
	public void setBir(Date bir) {
		this.bir = bir;
	}
	
	
}
